package com.shhic.hhplt.server.service;

import com.shhic.hhplt.server.model.User;
import com.shhic.hhplt.server.model.Workbay;
import com.shhic.hhplt.server.model.WorkbayState;
import com.shhic.hhplt.server.model.WorkbayStateQuery;

import java.util.List;

public interface IUserService {
    List<String> getAllProductList();

    User getUser(String username, String password);

    void updateUserPassword(String username, String newpassword);

    //注册产品和用例，如果中心服务已经知道了，就拉倒；不知道，保存起来。
    void registerProductAndSuite(String product,String suite);

    List<String> getSuiteList(String productName);

    List<String> getAllTestorNameList();

    void insertUser(User user);

    List<User> getAllUser();

    void deleteUser(String username);

    void insertWorkbay(Workbay workbay);

    List<Workbay> getAllWorkbay();

    void deleteWorkbay(String workbayId);

    void saveWorkbayState(WorkbayState workbayState);

    List<WorkbayState> queryHistoryWorkbayState(WorkbayStateQuery query);
}
